3.1.24 \(\int \frac {(a+b x) (a c-b c x)^4}{x^7} \, dx\) [24]

Optimal. Leaf size=41 \[ -\frac {c^4 (a-b x)^5}{6 x^6}-\frac {7 b c^4 (a-b x)^5}{30 a x^5} \]

[Out]

-1/6*c^4*(-b*x+a)^5/x^6-7/30*b*c^4*(-b*x+a)^5/a/x^5

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {79, 37} \begin {gather*} -\frac {c^4 (a-b x)^5}{6 x^6}-\frac {7 b c^4 (a-b x)^5}{30 a x^5} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((a + b*x)*(a*c - b*c*x)^4)/x^7,x]

[Out]

-1/6*(c^4*(a - b*x)^5)/x^6 - (7*b*c^4*(a - b*x)^5)/(30*a*x^5)

Rule 37

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[(a + b*x)^(m + 1)*((c + d*x)^(n +
1)/((b*c - a*d)*(m + 1))), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[b*c - a*d, 0] && EqQ[m + n + 2, 0] && NeQ
[m, -1]

Rule 79

Int[((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_.), x_Symbol] :> Simp[(-(b*e - a*f
))*(c + d*x)^(n + 1)*((e + f*x)^(p + 1)/(f*(p + 1)*(c*f - d*e))), x] - Dist[(a*d*f*(n + p + 2) - b*(d*e*(n + 1
) + c*f*(p + 1)))/(f*(p + 1)*(c*f - d*e)), Int[(c + d*x)^n*(e + f*x)^(p + 1), x], x] /; FreeQ[{a, b, c, d, e,
f, n}, x] && LtQ[p, -1] && ( !LtQ[n, -1] || IntegerQ[p] ||  !(IntegerQ[n] ||  !(EqQ[e, 0] ||  !(EqQ[c, 0] || L
tQ[p, n]))))

Rubi steps

\begin {align*} \int \frac {(a+b x) (a c-b c x)^4}{x^7} \, dx &=-\frac {c^4 (a-b x)^5}{6 x^6}+\frac {1}{6} (7 b) \int \frac {(a c-b c x)^4}{x^6} \, dx\\ &=-\frac {c^4 (a-b x)^5}{6 x^6}-\frac {7 b c^4 (a-b x)^5}{30 a x^5}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(85\) vs. \(2(41)=82\).
time = 0.01, size = 85, normalized size = 2.07 \begin {gather*} -\frac {a^5 c^4}{6 x^6}+\frac {3 a^4 b c^4}{5 x^5}-\frac {a^3 b^2 c^4}{2 x^4}-\frac {2 a^2 b^3 c^4}{3 x^3}+\frac {3 a b^4 c^4}{2 x^2}-\frac {b^5 c^4}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((a + b*x)*(a*c - b*c*x)^4)/x^7,x]

[Out]

-1/6*(a^5*c^4)/x^6 + (3*a^4*b*c^4)/(5*x^5) - (a^3*b^2*c^4)/(2*x^4) - (2*a^2*b^3*c^4)/(3*x^3) + (3*a*b^4*c^4)/(
2*x^2) - (b^5*c^4)/x

________________________________________________________________________________________

Maple [A]
time = 0.06, size = 62, normalized size = 1.51

method result size
gosper \(-\frac {c^{4} \left (30 b^{5} x^{5}-45 a \,b^{4} x^{4}+20 a^{2} b^{3} x^{3}+15 a^{3} b^{2} x^{2}-18 a^{4} b x +5 a^{5}\right )}{30 x^{6}}\) \(61\)
default \(c^{4} \left (-\frac {b^{5}}{x}+\frac {3 a^{4} b}{5 x^{5}}-\frac {a^{3} b^{2}}{2 x^{4}}-\frac {a^{5}}{6 x^{6}}+\frac {3 a \,b^{4}}{2 x^{2}}-\frac {2 a^{2} b^{3}}{3 x^{3}}\right )\) \(62\)
norman \(\frac {-\frac {1}{6} a^{5} c^{4}-b^{5} c^{4} x^{5}+\frac {3}{2} a \,b^{4} c^{4} x^{4}-\frac {2}{3} a^{2} b^{3} c^{4} x^{3}-\frac {1}{2} a^{3} b^{2} c^{4} x^{2}+\frac {3}{5} a^{4} b \,c^{4} x}{x^{6}}\) \(75\)
risch \(\frac {-\frac {1}{6} a^{5} c^{4}-b^{5} c^{4} x^{5}+\frac {3}{2} a \,b^{4} c^{4} x^{4}-\frac {2}{3} a^{2} b^{3} c^{4} x^{3}-\frac {1}{2} a^{3} b^{2} c^{4} x^{2}+\frac {3}{5} a^{4} b \,c^{4} x}{x^{6}}\) \(75\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x+a)*(-b*c*x+a*c)^4/x^7,x,method=_RETURNVERBOSE)

[Out]

c^4*(-b^5/x+3/5*a^4*b/x^5-1/2*a^3*b^2/x^4-1/6*a^5/x^6+3/2*a*b^4/x^2-2/3*a^2*b^3/x^3)

________________________________________________________________________________________

Maxima [A]
time = 0.30, size = 75, normalized size = 1.83 \begin {gather*} -\frac {30 \, b^{5} c^{4} x^{5} - 45 \, a b^{4} c^{4} x^{4} + 20 \, a^{2} b^{3} c^{4} x^{3} + 15 \, a^{3} b^{2} c^{4} x^{2} - 18 \, a^{4} b c^{4} x + 5 \, a^{5} c^{4}}{30 \, x^{6}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)*(-b*c*x+a*c)^4/x^7,x, algorithm="maxima")

[Out]

-1/30*(30*b^5*c^4*x^5 - 45*a*b^4*c^4*x^4 + 20*a^2*b^3*c^4*x^3 + 15*a^3*b^2*c^4*x^2 - 18*a^4*b*c^4*x + 5*a^5*c^
4)/x^6

________________________________________________________________________________________

Fricas [A]
time = 1.00, size = 75, normalized size = 1.83 \begin {gather*} -\frac {30 \, b^{5} c^{4} x^{5} - 45 \, a b^{4} c^{4} x^{4} + 20 \, a^{2} b^{3} c^{4} x^{3} + 15 \, a^{3} b^{2} c^{4} x^{2} - 18 \, a^{4} b c^{4} x + 5 \, a^{5} c^{4}}{30 \, x^{6}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)*(-b*c*x+a*c)^4/x^7,x, algorithm="fricas")

[Out]

-1/30*(30*b^5*c^4*x^5 - 45*a*b^4*c^4*x^4 + 20*a^2*b^3*c^4*x^3 + 15*a^3*b^2*c^4*x^2 - 18*a^4*b*c^4*x + 5*a^5*c^
4)/x^6

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 80 vs. \(2 (36) = 72\).
time = 0.18, size = 80, normalized size = 1.95 \begin {gather*} \frac {- 5 a^{5} c^{4} + 18 a^{4} b c^{4} x - 15 a^{3} b^{2} c^{4} x^{2} - 20 a^{2} b^{3} c^{4} x^{3} + 45 a b^{4} c^{4} x^{4} - 30 b^{5} c^{4} x^{5}}{30 x^{6}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)*(-b*c*x+a*c)**4/x**7,x)

[Out]

(-5*a**5*c**4 + 18*a**4*b*c**4*x - 15*a**3*b**2*c**4*x**2 - 20*a**2*b**3*c**4*x**3 + 45*a*b**4*c**4*x**4 - 30*
b**5*c**4*x**5)/(30*x**6)

________________________________________________________________________________________

Giac [A]
time = 1.57, size = 75, normalized size = 1.83 \begin {gather*} -\frac {30 \, b^{5} c^{4} x^{5} - 45 \, a b^{4} c^{4} x^{4} + 20 \, a^{2} b^{3} c^{4} x^{3} + 15 \, a^{3} b^{2} c^{4} x^{2} - 18 \, a^{4} b c^{4} x + 5 \, a^{5} c^{4}}{30 \, x^{6}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)*(-b*c*x+a*c)^4/x^7,x, algorithm="giac")

[Out]

-1/30*(30*b^5*c^4*x^5 - 45*a*b^4*c^4*x^4 + 20*a^2*b^3*c^4*x^3 + 15*a^3*b^2*c^4*x^2 - 18*a^4*b*c^4*x + 5*a^5*c^
4)/x^6

________________________________________________________________________________________

Mupad [B]
time = 0.05, size = 74, normalized size = 1.80 \begin {gather*} -\frac {\frac {a^5\,c^4}{6}-\frac {3\,a^4\,b\,c^4\,x}{5}+\frac {a^3\,b^2\,c^4\,x^2}{2}+\frac {2\,a^2\,b^3\,c^4\,x^3}{3}-\frac {3\,a\,b^4\,c^4\,x^4}{2}+b^5\,c^4\,x^5}{x^6} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((a*c - b*c*x)^4*(a + b*x))/x^7,x)

[Out]

-((a^5*c^4)/6 + b^5*c^4*x^5 - (3*a*b^4*c^4*x^4)/2 + (a^3*b^2*c^4*x^2)/2 + (2*a^2*b^3*c^4*x^3)/3 - (3*a^4*b*c^4
*x)/5)/x^6

________________________________________________________________________________________